import { createSlice } from "@reduxjs/toolkit";

const conterStore = createSlice({
    name: 'counter',
    initialState: {
        currentUser: {},
    },
    reducers: {
        setCurrentUser(state, option) {    
            state.currentUser = option.payload
        },
    }
})


const { setCurrentUser } = conterStore.actions

const reducer = conterStore.reducer

export { setCurrentUser }

export default reducer